<?php

namespace Alter\HominemBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class NewsForm extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {        
        $builder
            ->add('titre', 'textarea', array('required'=>true,
 'label' => 'Titre', 'max_length' => '255' , 'attr'=>array('rows' => '1', 'cols' =>'90')))
            ->add('contenu','textarea', array('required'=>true,
 'label' => 'Contenu', 'max_length' => '5000' , 'attr'=>array('rows' => '6', 'cols' =>'90'
))); 
    }
    
    public function getName()
    {
        return 'news';
    }    
}

